package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 备课练课任务
 * </p>
 *
 * @author hpiggy
 * @since 2024-10-09
 */
@TableName("practice_task")
@ApiModel(value = "PracticeTask对象", description = "备课练课任务")
@Data
public class PracticeTask implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Integer yearPart;

    private Integer quarterNum;

    private Integer lessonNum;

    @ApiModelProperty("【暂时不使用】应通关")
    private Integer lowestShutnum;

    @ApiModelProperty("【暂时不使用】")
    private Integer yearClassId;

    @ApiModelProperty("【暂时不使用】")
    private Long subjectsId;

    @ApiModelProperty("【暂时不使用】")
    private Long classTypeId;

    private LocalDate taskStartDate;

    private LocalDate taskEndDate;

    @TableLogic
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @ApiModelProperty("创建人")
    @TableField(fill = FieldFill.INSERT)
    private Long createdId;

    @TableField(exist = false)
    private Integer isNow = 0;
}
